<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
        {#定义block#}
        <div>
            {% block sidebar %}
                <ul>
                    <li><a href="/">Home</a></li>
                    <li><a href="/blog/">Blog</a></li>
                </ul>
            {% endblock %}
        </div>
        {#  子模板可以继承,也可以直接覆盖内容 #}
        <div>
            {% block content %}默认内容{% endblock %}
        </div>
        {#  css基本样式  #}
        {% block css %}
            <style>
                div{
                font-size:55px
            }
            </style>
        {% endblock %}

</body>
</html>